#include "request.h"

#include <QtDebug>

Request::Request(QStringList& raw)
{
    QStringList l = raw.at(0).split(' ');
    method = l.at(0);
    uri = l.at(1);
    version = l.at(2);

    foreach(QString line, raw)
        if(line.startsWith("Host:"))
            host = line.split(": ").at(1);
}
